const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
});
const path = require("path");
function resolve(dir) {
  return path.join(__dirname, dir);
}
module.exports = {
  //配置@，src别路径
  chainWebpack: (config) => {
    config.resolve.alias.set("@", resolve("src"));
  },
  //配置启动项目自动打开浏览器
  devServer: {
    host: "0.0.0.0", // 这个用于启动
    port: "8090", // 指定启动端口
    open: true,//自动打开浏览器
  },
  publicPath: "./",
  assetsDir: "static",
  outputDir: "dist",
};
